package com.xs.api;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import com.xs.entity.User;

//@FeignClient(name = "USER-API", fallback = UserServiceApiFallback.class)
public interface UserServiceApi {

	@PostMapping("/userApi/helloService")
	public String helloService();

	@PostMapping("/userApi/getUserById")
	public User getUserById(@RequestParam("userId") int userId);

	@PostMapping("/userApi/getUserInfo")
	public User getUserInfo(@RequestBody User user);

}
